package com.onLineCar.management.template;





/**
 * @author : 段敏强
 * @className : DispatchVehicleFeign
 * @description : 描述说明该类的功能
 * @createTime : 2023/12/19 20:09
 */

import com.onLineCar.management.domain.DispatchVehicleRequest;
import com.onLineCar.management.domain.OrderDTO;
import com.onLineCar.management.feign.DispatchVehicleData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 调度车辆数据
 */
@Component
public class DispatchVehicleFeign {

    @Autowired
    private DispatchVehicleData dispatchVehicleData;


    public void getDispatchVehicleData(OrderDTO dispatchRequest){
        DispatchVehicleRequest dispatchVehicleRequest = new DispatchVehicleRequest();
        dispatchVehicleRequest.setOrderDTO(dispatchRequest);
        dispatchVehicleData.driverDistribution(dispatchVehicleRequest);
    }
}
